<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js字符串和数组对象</title>
</head>
<body>
	
</body>

<script>

	
	
	
	str='/web/home/index.HOME.php';
	str2=str.replace('HOME','home'); 
	alert(str2);//结果/web/home/index.home.php
</script>
</html>